<template>
	<view class="page">
		<view class="main">
			<view class="title">
				{{obj.title}}
			</view>
			<u-parse :content="obj.content"></u-parse>
		</view>	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				fileServer: this.$fileServer,
				id:'',
				obj:{},
			};
		},
		onLoad(e) {
			this.id = e.id;
			this.getInfo();
		},
		methods: {
			getInfo(){
				this.$api.msg.getMsgDetail({messageId:this.id}).then(res => {
					if(res.flag){
						this.obj = res.data;
					}
				})
			},
			
			
		},
	}
</script>

<style lang="scss" scoped>
	.page {background-color: #F5F5F5;min-height: 100vh;padding: 30rpx;
		.main{padding: 30rpx;background-color: #fff;border-radius: 10rpx;
			color: #333;font-size: 28rpx;line-height: 34rpx;
			image{width: 100%;}
			.title{font-size: 30rpx;color: #333;text-align: center;margin-bottom: 20rpx;}
		}
	}
</style>